package com.example.katalk_nari;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.TextView;

public class TimeBarview extends FrameLayout {

	private TimeBarData mData;

	private TextView tvDateTime;
	
	
	
	public TimeBarview(Context context) {
		super(context);
		
		LayoutInflater inflater = LayoutInflater.from(context);
		inflater.inflate(R.layout.item_timeline, this);
		
		tvDateTime = (TextView)findViewById(R.id.datetime);
	}

	public void setData(TimeBarData data){
		mData = data;
		tvDateTime.setText(data.getDateTimeToString());		
	}
	
}